import http from "@/utils/request";

import { useUserStore, useDeviceStore } from "@/store";

class UserAPI {
  // test get api
  static getUserList(params = {}) {
    return http.get("/user/list", {
      params,
      custom: {
        auth: true,
        loading: true,
      },
    });
  }
  static getUserInfo(params = {}) {
    const deviceStore = useDeviceStore();
    return http.get(`/app/shop/${deviceStore.MyShop.id}`, {
      params,
      custom: {
        auth: true,
        loading: true,
      },
    });
  }
}

export default UserAPI;
